﻿import Vue from 'vue'

const that = Vue.prototype;
const allAlert = {
  confirmAlert: (_vue) => {
    that.$confirm("不保存提交，此次填写内容会被清空，确认关闭?").then((_) => {
      _vue.dialogTableVisible = false;
      _vue.show.detail = false;
      _vue.show.add = false;
      _vue.show.edit = false;
      _vue.show.addClass = false;
      _vue.show.payDetail = false;
      _vue.show.import = false;
    });
  },
}
// export function alertOK(msg, title, type_ = "success") {
//     this.$message({
//         type: msg,
//         message: title,
//         type: type_
//     });
// }

export default allAlert;